<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户详情页</title>
    <link th:href="@{/css/bootstrap.css}" rel="stylesheet">
</head>
<body>
<h1>用户详情</h1>
<p>部门编号：<span th:text="${department.deptCode}">101</span></p>
<p>部门名称：<span th:text="${department.deptName}">生产部</span></p>
<p>部门负责人：<span th:text="${department.manger}">老六</span></p>
<p>部门办公地址：<span th:text="${department.address}">2楼</span></p>


<h2>部门用户</h2>
<table class="table">
    <tr>
        <td>姓名</td>
        <td>年龄</td>
        <td>电话</td>
    </tr>
    <tbody>
    <tr th:each="u:${userList}">
        <td th:text="${u.name}"></td>
        <td th:text="${u.age}"></td>
        <td th:text="${u.phone}"></td>
    </tr>
    </tbody>

</table>
</body>
</html>